package net.mingsoft.basic.biz.impl;

import net.mingsoft.base.biz.impl.*;
import net.mingsoft.basic.dao.*;
import net.mingsoft.basic.entity.*;
import net.mingsoft.basic.biz.*;
import org.springframework.stereotype.*;
import org.springframework.transaction.annotation.*;
import org.springframework.beans.factory.annotation.*;
import net.mingsoft.base.dao.*;
import java.util.*;

@Service("roleModelBiz")
@Transactional
public class RoleModelBizImpl extends BaseBizImpl<IRoleModelDao, RoleModelEntity> implements IRoleModelBiz
{
    @Autowired
    private IRoleModelDao roleModelDao;
    
    public IBaseDao getDao() {
        return (IBaseDao)this.roleModelDao;
    }
    
    public void saveEntity(final List<RoleModelEntity> roleModelList) {
        this.roleModelDao.saveEntity(roleModelList);
    }
    
    public void updateEntity(final List<RoleModelEntity> roleModelList) {
        this.roleModelDao.updateEntity(roleModelList);
    }
    
    public List<RoleModelEntity> queryByRoleId(final int roleId) {
        return this.roleModelDao.queryByRoleId(roleId);
    }
    
    public void deleteByRoleId(final int roleId) {
        this.roleModelDao.deleteByRoleId(roleId);
    }
    
    public void deleteByRoleIds(final int[] ids) {
        this.roleModelDao.deleteByRoleIds(ids);
    }
}
